<?php echo View::factory('header')->bind('page_title', $page_title) ?>
<div class="container">
	<div class="content-left">
		<?php
		if (isset($tag)){
			echo "<div class=\"headline\">标签：<a href=\"/index/tagid/{$tagid}\">{$tag}</a></div>";
		}
		foreach ($articles['articles'] as $article){?>
		<div class="article">
			<div class="article-title">
				<a href="/detail/index/<?php echo $article['aid']?>"><?php echo $article['title']?></a>
			</div>
			<div class="article-info">
				<a href="/index/index/<?php echo $article['category']?>"><?php echo Kohana::$config->load('category')->get($article['category'])?></a>
				<?php if (0){?>
				<i class="article-mid">•</i>
				<a href="">tag</a>
				<?php }?>
				<span class="article-time"><?php echo substr($article['addtime'], 0, 10)?></span>
			</div>
			<div>
				<div class="article-media">
				<?php if (!empty($article['image'])){echo $article['image'];}
				if (!empty($article['video'])){echo $article['video'];}?>
				</div>
				<div class="article-content">
					<?php echo $article['summary']?>
					… <span class="read-all"><a href="/detail/index/<?php echo $article['aid']?>">>>>查看全文</a></span>
				</div>
			</div>
			<div class="article-operation">
				<a href="javascript: void(0)" id="like_add_<?php echo $article['aid']?>" aid="<?php echo $article['aid']?>">喜欢(<span id="like_num_<?php echo $article['aid']?>"><?php echo $article['like']?></span>)</a>
				<?php if (0){?>
				<i class="article-operation-mid">|</i>
				<a href="javascript: void(0)">分享(<?php echo $article['share']?>)</a><!-- （微博分享，能显示分享人数/36克 | 各种平台分享） -->
				<i class="article-operation-mid">|</i>
				<a href="javascript: void(0)">收藏(<?php echo $article['collect']?>)</a>
				<?php }?>
				<i class="article-operation-mid">|</i>
				<a href="/detail/index/<?php echo $article['aid']?>#comment">评论(<?php echo $article['comment']?>)</a><!-- （匿名评论 微博账户评论 注册评论） -->
			</div>
		</div>
		<?php }?>

		<div class="article-page">
			<?php echo $articles['pager']?>
		</div>

	</div>
	<?php
	echo View::factory('right')
		->bind('hot_articles', $right['hot_articles'])
		->bind('hot_tags', $right['hot_tags'])
		->bind('new_comments', $right['new_comments'])
	?>
</div>
<?php echo View::factory('footer') ?>
